import {createZDragComponentV2, createZDragTemplate} from "@/plugins/z-dragxml/factory";

export default createZDragComponentV2('ZDragSInput',{
  components: {},
  template: createZDragTemplate(`
  <div>
  <div>测试</div>
  <el-input :ui="zdrag__cus_config.ui"></el-input>
</div>
  `),
  data() {
    return {
      ui: {
        label: '单行文本',
        widgetConfig: {
        }
      }
    }
  }
}, {
  DRAG_GROUP: 'custom',
  DRAG_FIELD: true,
  DRAG_DEFAULT_VAL() {
    return {
      type: 'string',
      ui: {
        label: '默认值',
      }
    }
  },
  DRAG_CONFIG() {
    return {
      props: {}
    }
  },
  DRAG_LABEL_XML() {
    return {
      icon: `<svg t="1636083425081" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2423" width="16" height="16"><path d="M118.784 727.04h778.24V296.96h-778.24v430.08zM77.824 256h860.16v512H77.824V256zM194.56 409.6v204.8c0 12.288 8.192 20.48 20.48 20.48s20.48-8.192 20.48-20.48V409.6c0-12.288-8.192-20.48-20.48-20.48s-20.48 8.192-20.48 20.48z" p-id="2424"></path></svg>
`,
      name: 'S输入框'
    }
  },
  DRAG_EXPORT() {
    return {
      ui: {
        widget: 'CusInput'
      }
    }
  },
})
